package com.apes.autoparts.autoCode.model;

import com.apes.framework.jpa.DefaultPersistListener;
import com.apes.framework.jpa.comment.Comment;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.SelectBeforeUpdate;

import javax.persistence.*;

/**
 * @Title: EpcBbmcDzb
 * @Author fj
 * @Package com.apes.autoparts.autoCode.model
 * @Date 2023/6/20 9:28
 * @description: 精时EPC版本与集群EPC版本对照实体类
 */
@Getter
@Setter
@SelectBeforeUpdate
@DynamicInsert
@DynamicUpdate
@Entity
@EntityListeners(DefaultPersistListener.class)
@Table(name = EpcBbmcDzb.CONST_TABLE_NAME)
public class EpcBbmcDzb {

    public static final String CONST_TABLE_NAME = "EPC_BBMC_DZB";

    @Id // 添加一个空的id标识，因为jpa在映射实体是需要一个id，这个必须

    @Column(name = "EPC_BBMC")
    @Comment("EPC版本名称")
    private String epcBbmc;

    @Column(name = "EXT_EPC_BBMC")
    @Comment("外部渠道EPC版本名称")
    private String extEpcBbmc;

    @Column(name = "EXT_LY")
    @Comment("外部渠道名称")
    private String extLy;

}
